package br.com.arndroid.coupman.site;

import android.database.Cursor;
import br.com.arndroid.coupman.R;
import br.com.arndroid.lib.entity.EntityAdapter;
import br.com.arndroid.lib.entity.EntityController;
import br.com.arndroid.lib.entity.EntityListActivity;

public class SiteListActivity extends EntityListActivity<SitePOJO> {

	public SiteListActivity() {
		super(SiteFormActivity.class);
	}

	@Override
	public int onAcquireEmptyLayoutId() {
		return R.layout.site_list_empty;
	}

	@Override
	public String onAcquireLCaseEntityName() {
		return getString(R.string.site_lcase);
	}

	@Override
	public EntityController<SitePOJO> onAcquireController() {
		return SiteController.getInstance(this);
	}

	@Override
	public EntityAdapter getNewAdapter(Cursor cur) {
		return new SiteAdapter(this, cur);
	}

	@Override
	public int onAcquireOptionMenuId() {		
		return R.menu.entity_option_menu;
	}

	@Override
	public int onAcquireContextMenuId() {
		return R.menu.entity_context_menu;
	}

	@Override
	public String onAcquireDeleteDialogTitle() {
		return getString(R.string.entity_delete_title);
	}

	@Override
	public String onAcquireDeleteDialogMessage() {
		return getString(R.string.entity_delete_message);
	}
}
